﻿<UserControl
    x:Class="XnReader.WinRT.Controlx.CommandDx"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XnReader.WinRT.Controlx"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Helper="using:XnReader.WinRT.Helper"
    mc:Ignorable="d"
    d:DesignHeight="90"
    >
    <Grid Background="Transparent">
        <Grid.Resources>
            <Helper:ToolBarStyleConverter x:Key="ConverterToolBarStyle" />
        </Grid.Resources>
        <StackPanel Orientation="Horizontal" x:Name="spLeft" HorizontalAlignment="Left" Margin="10,0,0,0">
            <Button x:Name="btnGoBack" Visibility="{Binding VisibleGoBack}" AutomationProperties.Name="返回" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnOnlineStore" Visibility="{Binding VisibleOnlineStore}" AutomationProperties.Name="在线搜书" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
           <Button x:Name="btnModify" Visibility="{Binding VisibleModify}" AutomationProperties.Name="编辑书架" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" ToolTipService.ToolTip="编辑选中的书架" />
            <Button x:Name="btnSearch" Visibility="{Binding VisibleSearch}" AutomationProperties.Name="查询" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnBookcase" Visibility="{Binding VisibleBookcase}" AutomationProperties.Name="我的书架" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnSetting" Visibility="{Binding VisibleSetting}" AutomationProperties.Name="设置" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnAddBookcase" Visibility="{Binding VisibleAddBookcase}" AutomationProperties.Name="加入书架" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <!--<Image Visibility="{Binding VisibleLogo}" Source="../Assets/logo_small.png" Width="250" Height="80" Margin="0"></Image>-->
        </StackPanel>
        <StackPanel x:Name="spRight" HorizontalAlignment="Right" Orientation="Horizontal"  Margin="0,0,10,0">
            <Button x:Name="btnImport" Visibility="{Binding VisibleImport}" AutomationProperties.Name="导入本地" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnDelete" Visibility="{Binding VisibleDelete}" AutomationProperties.Name="删除" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnClean" Visibility="{Binding VisibleClean}" AutomationProperties.Name="清空" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" ToolTipService.ToolTip="清空当前书架的所有书籍" />
            <Button x:Name="btnPrevious" Visibility="{Binding VisiblePrevious}" AutomationProperties.Name="上一章" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick"/>
            <Button x:Name="btnNext" Visibility="{Binding VisibleNext}" AutomationProperties.Name="下一章" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick"/>
            <Button x:Name="btnList" Visibility="{Binding VisibleList}" AutomationProperties.Name="目录" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnMark" Visibility="{Binding VisibleMark}" AutomationProperties.Name="添加书签" Content="⚑" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
           <Button x:Name="btnBackground" Visibility="{Binding VisibleBackground}" AutomationProperties.Name="背景" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnFontSize" Visibility="{Binding VisibleFontSize}" AutomationProperties.Name="大小" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnFontFamily" Visibility="{Binding VisibleFontFamily}" AutomationProperties.Name="字体" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnRating" Visibility="{Binding VisibleRating}" AutomationProperties.Name="评论" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnUpdate" Visibility="{Binding VisibleUpdate}" AutomationProperties.Name="版本更新" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <Button x:Name="btnAbout" Visibility="{Binding VisibleAbout}" AutomationProperties.Name="关于" Content="ℹ" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />
            <!--<Button x:Name="btnEncoding" Visibility="{Binding VisibleEncoding}" AutomationProperties.Name="字符集" Content="" Style="{Binding Theme, Converter={StaticResource ConverterToolBarStyle}}" Click="BtnClick" />-->
        </StackPanel>
    </Grid>
</UserControl>
